package com.hr.controller;

import com.hr.entity.SalaryStandardDetails;
import com.hr.service.SalaryStandardDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/salaryStandardDetails")
public class SalaryStandardDetailsController {
    @Autowired
    private SalaryStandardDetailsService salaryStandardDetailsService;

    @GetMapping("/queryList")
    public List<SalaryStandardDetails> queryList(){
        List<SalaryStandardDetails> list = salaryStandardDetailsService.queryList();
        return list;
    }
}
